From 5f24d1a51943c1c066e47e5a9144520d242827cb Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 21 Mar 2014 18:13:41 +0100 Subject: [PATCH] gesture: Only recognize gestures with as many interacting touches as those handled If a gesture has denied sequences (so those are presumably handled above/below the widget), it shouldn't attempt to handle extra touches, even if those end up matching the expected number of touches. --- gtk/gtkgesture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c index c24fc59606..e4f9306f02 100644 --- a/gtk/gtkgesture.c +++ b/gtk/gtkgesture.c @@ -200,6 +200,7 @@ _gtk_gesture_check_recognized (GtkGesture *gesture, _gtk_gesture_set_recognized (gesture, FALSE, sequence); else if (!priv->recognized && current_n_points == priv->n_points && + g_hash_table_size (priv->points) == priv->n_points && _gtk_gesture_do_check (gesture)) _gtk_gesture_set_recognized (gesture, TRUE, sequence); -- 2.30.2